package com.woniu.mapper;

import com.woniu.entity.Unit;

import java.util.List;

/**
 * @author 黄展旺njn
 * @description 针对表【unit(计量单位表)】的数据库操作Mapper
 * @createDate 2025-09-04 15:22:14
 * @Entity com.woniu.entity.Unit
 */
public interface UnitMapper {

    int delete(Integer unitId);


    int add(Unit unit);

    Unit findByUnitId(Integer unitId);

    int update(Unit unit);
    List<Unit> findAll();


    Unit findByName(String unitName);
}
